﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CarHelpDesk.Web.Models.AccountEditModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Промяна на профил
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Промяна на профил</h2>
    
    <% using (Html.BeginForm())
       { %>
        <%= Html.ValidationSummary(true, "Промяната на профила беше неуспешна. Моля опитайте отново.") %>
        <div>
            <fieldset>
                <legend>Настройки на профила</legend>
                
                <div class="editor-label">
                    <label for="UserName">Потребителско име</label>
                </div>
                <div class="editor-field">
                    <%= Html.TextBox("UserName", Context.User.Identity.Name, (object) new { disabled = "true" })%>
                </div>
                
                <div class="editor-label">
                    <%=Html.LabelFor(m=>m.Email) %> 
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.Email) %>
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </div>              
                
                <div class="editor-label">
                    <%=Html.LabelFor(m=>m.UserDetail.FirstName) %> 
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserDetail.FirstName)%>
                    <%= Html.ValidationMessageFor(m => m.UserDetail.FirstName)%>
                </div> 
                
                <div class="editor-label">
                    <%=Html.LabelFor(m => m.UserDetail.LastName)%> 
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.UserDetail.LastName) %>
                    <%= Html.ValidationMessageFor(m => m.UserDetail.LastName) %>
                </div>                 
               
                <p class="editor-field">
                    <input type="submit" value="Промени" style="width:100px;" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
